<include file="./Tpl/Home/Header.html"/>
<link href="/Public/Home/code.css" rel="stylesheet" type="text/css"/>
<div class="codeBody">
	<div class="codeSearchMainBody">
		<ul class="mod-sub-nav">
			<li class="mod-sub-list1 list1-active">获取验证码</li>
			<li class="mod-sub-list2 ">修改密码</li>
			<li class="mod-sub-list3 ">修改成功 </li>
		</ul>
		
		<div class="Information">
			<span>您的注册邮箱:</span>
			<br>
			<span><input type="text" class="inputName" name="email" id="email"> </span> <span id="emaildes"></span>
			<br>
			<span class="red" id="emailMsg">&nbsp;</span>
			<br>
			<span><input type="button" value="提交" id="subemail" class="codeSearchButton"></span>
		</div>

	</div>
</div>
<include file="./Tpl/Home/Footer.html"/>
<script type="text/javascript" src="/Public/js/formcheck.js"></script>
<script language="javascript">
$(document).ready(function(){
	$('#email').blur(function(){
	    checkemail($('#email'),$('#emaildes'));
	});
    $('#email').focus(function(){
	    recover($('#email'),$('#emaildes'));
	});
	
	$('#subemail').click(function(){
		var n = checkemail($('#email'),$('#emaildes'));
		if(n){
			$.post('{$path}/User/getpaypwd',{email:$('#email').val()},function(d){
			    if(d.status==0){
				    location.href="{$path}/User/getpaypwd2";
				}else if(d.status==2){
				    alert(d.info);
				}else{
				    $('#emaildes').text(d.info);
				}
			},'json');
		}
	});
});
</script>